package com.sixteen.ordering_system.pojo;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author sixteen
 * @since 2022-09-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Dish implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 菜品
     */
    @TableId(value = "dish_id", type = IdType.AUTO)
    private Integer dishId;

    /**
     * 名称
     */
    private String dishName;

    /**
     * 概述
     */
    private String summary;


    /**
     * 价格
     */
    private BigDecimal price;

    /**
     * 0销售中，1售空
     */
    private Integer state;

    /**
     * 菜品分类id
     */
    private DishCategory dishCategory;

    private String img;

    private String remark;


    public String getDishName() {
        return dishName;
    }

    public void setDishName(String dishName) {
        this.dishName = dishName;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public DishCategory getDishCategory() {
        return dishCategory;
    }

    public void setDishCategory(DishCategory dishCategory) {
        this.dishCategory = dishCategory;
    }

    @Override
    public String toString() {
        return "Dish{" +
                "dishId=" + dishId +
                ", dishName='" + dishName + '\'' +
                ", summary='" + summary + '\'' +
                ", price=" + price +
                ", state=" + state +
                ", dishCategory=" + dishCategory +
                ", img='" + img + '\'' +
                ", remark='" + remark + '\'' +
                '}';
    }
}
